package com.zhixi.pattern.notimportant.mediatorpattern.operation;

/**
 * 采购
 *
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/17 9:06
 */
public class Purchase extends AbstractColleague {

    public Purchase(AbstractMediator mediator) {
        super(mediator);
    }

    /**
     * 采购电脑
     */
    public void buyIBMComputer(int number) {
        super.mediator.execute("purchase.buy", number);
    }

    /**
     * 停止采购
     */
    public void refuseBuyIBM() {
        System.out.println("停止采购电脑");
    }

}
